
public class ThrowDemo {
public static void DealWithException() {
	try {
		DealWithException();
	}
	catch(Exception ex) {
		System.out.println("再次捕获了内部异常NullPointerExceotion!");
		System.out.println(ex.getMessage()+"再次接收处理!");
		
	}
}
public static void throwException()throws NullPointerException{
	try {
		throw new NullPointerException("");
		
	}catch(NullPointerException e) {
		System.out.println("已经捕获了内部异常NullPointerExcepton,开始处理!");
		throw new NullPointerException(e.toString()+"内部处理!");
		
	}
}
public static void main(String[] args) {
	DealWithException();
}
}
